package com.hhx.service.impl;
import com.hhx.service.UserService;
import com.hhx.dao.UserDao;
import com.hhx.dao.impl.UserDaoImpl;
import com.hhx.entity.User;
public class UserServiceImpl implements UserService {
    private UserDao userDao = new UserDaoImpl();
    @Override
    public User findByUsername(String username) {
        User user = userDao.findByUsername(username);
        return user;
    }
    @Override
    public boolean authenticate(String username, String password) {
        return userDao.authenticate(username, password);
    }
}
